package com.wuyou.designPatterns.singleton;

/**
 * 饿汉单例：类初始化即创建对象
 */
public class Singleton {

    private static Singleton singleton = new Singleton();

    private Singleton(){}

    public static Singleton getSingleton(){return singleton;}
}
